/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sysmo.server.node.item;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * JavaMail用户验证类。
 *
 * @author YuLicheng
 */
public class WarningAuth extends Authenticator {
    private String strUser;
    private String strPwd;

    public WarningAuth(String user, String password) {
        this.strUser = user;
        this.strPwd = password;
    }

    @Override
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(strUser, strPwd);
    }
}
